<html>
<head>
	<title>METviewer Documentation</title>
	<link rel="stylesheet" type="text/css" href="mv_doc.css" />
	<link rel="shortcut icon" href="include/ral_icon.ico" type="image/x-icon"/>
</head>
<body>

<p class="loc" style="padding-top:10px">
<b>Location:</b> <a class="loc" href="index.html">Home</a> &#187; Common XML Structures
</p><hr/>

<h2>METviewer Documentation - Common XML Structures</h2>

<p>The <a href="load.html">database loading module</a> and <a href="plot.html">batch plotting module</a> both use XML input files.  Some XML structures can be used in either input
file.  These common structures are documented below.</p>

<p>

<ul>

	<li>
		<span class="code">&lt;connection&gt;</span>: information about the database connection
		<ul>
			<li><span class="code">&lt;host&gt;</span>: database hostname and port number in [host]:[port] format</li>
			<li><span class="code">&lt;database&gt;</span>: database name(s) as CSV</li>
			<li><span class="code">&lt;user&gt;</span>: database user</li>
			<li><span class="code">&lt;password&gt;</span>: database user's password</li>
			<li><span class="code">&lt;management_system&gt;</span>: database type. Can be mysql or mariadb</li>

		</ul>
	</li><br/>
	
	<li>
		<span class="code">&lt;date_list&gt;</span>: a structure that specifies a list of date strings in a certain format 
		<ul>
			<li><span class="code">&lt;start&gt;</span>: the start date and time of the date list, specified in the format given by the tag <span class="code">&lt;format&gt;</span></li>
			<li><span class="code">&lt;end&gt;</span>: the end date and time, specified in the format given by the tag <span class="code">&lt;format&gt;</span></li>
			<li><span class="code">&lt;inc&gt;</span>: the increment, in seconds, between successive members of the date list</li>
			<li><span class="code">&lt;format&gt;</span>: the date format, specified by the java class 
			<a href="http://download.oracle.com/javase/1,5.0/docs/api/java/text/SimpleDateFormat.html">SimpleDateFormat</a></li>
		</ul>
	</li><br/>
	
	<li>
		<span class="code">&lt;date_offset&gt;</span>: a structure that specifies a date, using an offset from another date 
		<ul>
			<li><span class="code">&lt;day_offset&gt;</span>: the number of days to offset (negative means back in time)</li>
			<li><span class="code">&lt;hour&gt;</span>: the hour of day, UTC</li>
		</ul>
	</li><br/>
	
</ul>
</p>

</body>
</html>
